#include<iostream>
#include<vector>

using namespace std;

vector<int> mul(vector<int> &A,int b){
	int i=0,t=0;
	vector<int> C;
	for(i=0;i<A.size() ;i++){
		t+=A[i]*b;
		C.push_back(t%10);
		t/=10; 
	}
	return C;
}

int main(){
	string a;
	int b=0,i=0;
	cin>>a>>b;
	vector<int> A,C;
	for(i=a.size()-1;i>=0;i--){
		A.push_back(a[i]-'0'); 
	}
	C=mul(A,b);
	for(i=C.size() -1;i>=0;i--){
		cout<<C[i];
	}
	return 0;
}
